#!/usr/bin/env python
from numarray import *
from color import rgb2hsv
import pickle

MAT_SIZE = 256

f = open('convert_matrix.dat', 'r')
convertMatrix = zeros((MAT_SIZE,MAT_SIZE,MAT_SIZE))

convertMatrix = pickle.load(f)
"""
for i in range(MAT_SIZE):
    print i
    for j in range(MAT_SIZE):
        for k in range(MAT_SIZE):
            #convertMatrix[i,j,k]=rgb2hsv((i,j,k))
            convertMatrix[i,j,k]=  i
pickle.dump( convertMatrix, f)
"""
print convertMatrix[30,12,1]
